KERN_DIR = /home/huahui/Linux-4.9.88

all:
	make -C $(KERN_DIR) M=`pwd` modules
	$(CROSS_COMPILE)gcc -o mmap_test mmap_test.c
	$(CROSS_COMPILE)gcc -o test test.c

clean:
	make -C $(KERN_DIR) M=`pwd` modules clean
	rm -rf modules.order
	rm -rf mmap_test test

obj-m	+= mmap.o
